package com.fap.core.bo;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.fap.core.bo.define.BoDefineRepository;
import com.fap.core.bo.meta.BoMeta;

@Component(value="boFactory")
public class BoFactory {

	@Resource(name="boDefineRepository")
	private BoDefineRepository _defineRepository;
	
	public BusinessObject createByTag(String tag){
		BoMeta meta = _defineRepository.getMetaByTag(tag);
		BusinessObject bo = new BusinessObject(meta);
		return bo;
	}	
}
